package remote_work.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import remote_work.util.SystemConstants;

/**
 * @author LiuPing
 *
 * 2018年3月19日
 */
public class OutputObject implements Serializable {

	private static final long serialVersionUID = 1L;

	private Map<String, Object> bean = new HashMap<>();
	
	private List<Map<String, Object>> beans = new ArrayList<>();
	
	private String returnCode = SystemConstants.SUCCESS;
	
	private String returnMessage = SystemConstants.SUCCESS;

	public Map<String, Object> getBean() {
		return bean;
	}

	public void setBean(Map<String, Object> bean) {
		this.bean = bean;
	}
	
	public void addObject(String key, Object value) {
		bean.put(key, value);
	}

	public List<Map<String, Object>> getBeans() {
		return beans;
	}

	public void setBeans(List<Map<String, Object>> beans) {
		this.beans = beans;
	}
	
	public void addBean(Map<String, Object> bean) {
		beans.add(bean);
	}

	public String getReturnCode() {
		return returnCode;
	}

	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}

	public String getReturnMessage() {
		return returnMessage;
	}

	public void setReturnMessage(String returnMessage) {
		this.returnMessage = returnMessage;
	}
	
}
